xen/arm: Fix PLATFORM_QUIRK_GIC_64K_STRIDE
authorIan Campbell <ian.campbell@citrix.com>
Wed, 9 Jul 2014 12:30:54 +0000 (13:30 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 9 Jul 2014 13:15:28 +0000 (14:15 +0100)
commit757916970f6e18c3d6163708618770065732af2c
tree2f552438ba92bd56923950e94f6b1e28cc62d285
parent615773aee88b90a48446cd73796d18fb901d99be
xen/arm: Fix PLATFORM_QUIRK_GIC_64K_STRIDE

The patch "xen/arm: use ioremap to map gic-v2 registers" handled this
quirk by mapping a 64K+1 page region, but the code continued to
assume that GICC_DIR was at offset 0x1000 from the start of the
mapping.

Fix this by mapping both pages of the GICC space independently and
adjusting the accessor function to use the correct page.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Cc: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Cc: Anup Patel <anup.patel@linaro.org>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/gic-v2.c